<?php

// [ 检查前置操作 ]

namespace app\api\behavior;
use think\Session;
use app\api\lib\Response;

class CheckPre
{
    public function run(&$class)
    {
        $pre = $class->_pre;
        if ( !empty($pre) ) {
            foreach ($pre as $val) $this->{$val}();
        }
    }
}
